<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            {if condition = "$user_power['0']==1||$user_power['1']==1||$user_power['2']==1"}
            <li>
                <a href="javascript:;">
                    <cite>问题管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    {if condition="$user_power['0']=='1'"}
                    <li>
                        <a _href="{:url('admin/problem/editor')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>编辑问题</cite>

                        </a>
                    </li >
                    {/if}
                    {if condition="$user_power['0']=='1'"}
                    <li><a _href="{:url('admin/problem/add')}">
                            <i class="iconfont">&#xe6a7;</i><cite>添加问题</cite></a></li>
                    {/if}    
                    {if condition="$user_power['0']=='1'"}       
                    <li><a _href="{:url('admin/problem/rejudge')}">
                            <i class="iconfont">&#xe6a7;</i><cite>重判问题</cite>
                        </a>
                    </li>
                    {/if}
                </ul>

            </li>
            {/if}
                   <!---     上面是问题管理的部分   --->
                   
                   
                   <!-- 下面是比赛的相关管理     -->
            {if condition="$user_power['3']==1||$user_power['4']==1"}
            <li>
                <a href="javascript:;"><cite>竞赛管理</cite><i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    {if condition="$user_power['3']=='1'"}
                    <li>
                        <a _href="{:url('admin/Contest/editor')}"><i class="iconfont">&#xe6a7;</i><cite>编辑竞赛</cite></a>
                    </li>
                    {/if}
                    {if condition="$user_power['4']=='1'"}
                    <li>
                        <a _href="{:url('admin/Contest/add')}"><i class="iconfont">&#xe6a7;</i><cite>添加竞赛</cite></a>
                    </li>
                    {/if}
                </ul>
            </li>
            {/if}
            {if condition = "$user_power['5']=='1'||$user_power['6']=='1'||$user_power['7']=='1'"}
            <li>
                <a href="javascript:;">
                    <cite>新闻&消息管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    {if condition="$user_power['7']=='1'"}
                    <li>
                        <a _href="{:url('admin/pages/add_news')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>添加新闻</cite>
                        </a>
                    </li>
                    {/if} 
                   
                    {if condition="$user_power['5']=='1'"}
                    <li>
                        <a _href="{:url('admin/pages/editor_news')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>编辑新闻</cite>
                        </a>
                    </li>
                    {/if}
                    
                   
                    
                    {if condition="$user_power['6']=='1'"}
                    <li>
                        <a _href="{:url('admin/pages/editor_radio')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>编辑广播</cite>
                        </a>
                    </li>
                    {/if}
                </ul>
            </li>
            {/if}
            {if condition = "$user_power['8']==1||$user_power['9']==1"}
            <li>
                <a href="javascript:;">
                    <cite>用户管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    {if condition="$user_power['8']=='1'"}
                    <li>
                        <a _href="{:url('admin/users/reset_pws')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>重置密码</cite>
                        </a>
                    </li>
                    {/if}
                    {if condition="$user_power['8']=='1'"}
                    <li>
                        <a _href="{:url('admin/users/sendmsg')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>发送系统消息</cite>
                        </a>
                    </li>
                    {/if}
                   
                </ul>
            </li>
            {/if}

            {if condition = "$user_power['10']==1"}
            <li>
                <a _href="{:url('admin/power/editor')}">
                    <cite>编辑权限</cite>
                </a>
                
            </li>
            {/if}
          
        </ul>
    </div>
</div>